package cn.gene.timeyan.ums.webapi;

import cn.gene.timeyan.common.config.TimeyanCommonConfiguration;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;

@SpringBootApplication(exclude = ElasticsearchDataAutoConfiguration.class)
@EnableDubbo// 如果当前项目是Dubbo服务的生产者,必须添加这个注解
@Import({TimeyanCommonConfiguration.class})
public class TimeyanUmsWebapiApplication {

    public static void main(String[] args) {
        SpringApplication.run(TimeyanUmsWebapiApplication.class, args);
    }

}
